package com.finance.report.bean.export;

import com.finance.base.constant.BaseConstants;
import com.finance.base.exception.BaseException;
import com.finance.framework.lang.BeanUtils;
import com.finance.report.bean.pojo.ManLogistics;
import com.finance.util.export.ExportBeanParse;

/**
 * @Author: gly
 * @Date: Created in 2017-05-26
 */
public class ManLogisticsParse extends ExportBeanParse<ManLogistics,ManLogisticsParseBean> {
    @Override
    protected ManLogisticsParseBean parse(ManLogistics manLogistics) {
        ManLogisticsParseBean bean = new ManLogisticsParseBean();
        try {
            BeanUtils.copyProperties(bean,manLogistics);
        } catch (Exception e) {
            throw new BaseException(BaseConstants.ERR_COPYBEAN);
        }
        return bean;
    }
}
